<ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
    <li data-name="home" class="layui-nav-item layui-nav-itemed">
        <a class="" lay-href="{:url('index/welcome')}" href="javascript:;" lay-tips="首页" lay-direction="2" >
            <i class="iconfont">&#xe651;</i>首页
        </a>
    </li>
    <li data-name="shop" class="layui-nav-item">
        <a class="menu-icon-shop" href="javascript:;" lay-tips="店铺管理"  lay-direction="2">
            <i class="iconfont icon-none icon-setting"></i>店铺管理
        </a>
        <dl class="layui-nav-child">
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('shop/setting')}" style="padding-left: 44px;">店铺资料</a>
            </dd>
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('ship/index')}" style="padding-left: 44px;">运费模板</a>
            </dd>
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('shop/address')}" style="padding-left: 44px;">发货地址</a>
            </dd>
        </dl>
    </li>

    <li data-name="goods" class="layui-nav-item">
        <a class="menu-icon-goods" href="javascript:;" lay-tips="商品管理"  lay-direction="2">
            <i class="iconfont icon-none icon-goods"></i>商品管理
        </a>
        <dl class="layui-nav-child">
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('goods/index')}" style="padding-left: 44px;">商品列表</a>
            </dd>
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('goods_type_spec/index')}" style="padding-left: 44px;">商品属性</a>
            </dd>
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('categories/index')}" style="padding-left: 44px;">商品分类</a>
            </dd>
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('user/comment')}" style="padding-left: 44px;">商品评价</a>
            </dd>
        </dl>
    </li>
    <li data-name="order" class="layui-nav-item">
        <a class="menu-icon-order" href="javascript:;" lay-tips="订单管理"  lay-direction="2">
            <i class="iconfont icon-none icon-order"></i>订单管理
        </a>
        <dl class="layui-nav-child">
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('order/index')}" style="padding-left: 44px;">订单列表</a>
            </dd>
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('bill_delivery/index')}" style="padding-left: 44px;">发货单列表</a>
            </dd>
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('bill_aftersales/index')}" style="padding-left: 44px;">售后单列表</a>
            </dd>
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('bill_reship/index')}" style="padding-left: 44px;">退货单列表</a>
            </dd>
        </dl>
    </li>
    <li data-name="billpayments" class="layui-nav-item">
        <a class="menu-icon-billpayments" href="javascript:;" lay-tips="财务管理"  lay-direction="2">
            <i class="iconfont icon-none icon-billpayments"></i>财务管理
        </a>
        <dl class="layui-nav-child">
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('bill_payments/index')}" style="padding-left: 44px;">支付单列表</a>
            </dd>
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('bill_refund/index')}" style="padding-left: 44px;">退款单列表</a>
            </dd>
            <dd data-name="setting">
                <a href="javascript:;" lay-href="{:url('balance/index')}" style="padding-left: 44px;">账户资金管理</a>
            </dd>
        </dl>
    </li>

    {if $menu }
    {foreach $menu as $k=>$v}
    <li data-name="{:strtolower($v['code'])}" class="layui-nav-item">
        {if isset($v['children']) && !empty($v['children'])}
            <a class="menu-icon-{:strtolower($v['code'])}" href="javascript:;" lay-tips="{$v.name}"  lay-direction="2">
                <i class="iconfont icon-none icon-{:strtolower($v['code'])}"></i>{$v.name}
            </a>
            <dl class="layui-nav-child">
                {foreach $v['children'] as $x=>$y}
                <dd data-name="{:strtolower($v['code'])}">
                    {if isset($y['children']) && !empty($y['children'])}
                        <a href="javascript:;" href="javascript:;" style="padding-left: 44px;">{$y.name}</a>
                        <dl class="layui-nav-child">
                            {foreach $y['children'] as $a=>$b}
                            <dd data-name="{:strtolower($b['code'])}" class="{if $b.selected} layui-this{/if}">
                                <a lay-href="{$b.url}">{$b.name}</a>
                            </dd>
                            {/foreach}
                        </dl>
                    {else /}
                        <a href="javascript:;" lay-href="{$y.url}" style="padding-left: 44px;">{$y.name}</a>
                    {/if}
                </dd>
                {/foreach}
            </dl>
        {else /}
            <a class="menu-icon-{:strtolower($v['code'])}" lay-href="{$v.url}" lay-tips="{$v.name}"  lay-direction="2">
                <i class="iconfont icon-none icon-{:strtolower($v['code'])}"></i>{$v.name}
            </a>
        {/if}

    </li>
    {/foreach}
    {/if}
 </ul>